<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
print_r($cats_list_array);
foreach ($cats_list_array as $key => $val) {
    
}
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>无标题文档</title>
    </head>

    <body>
        <form action="<?php 
        echo site_url("admin/catset/cat_add");
        ?>" method="post">
            分类名称<input name="catname" type="text" />
            <input name="submit" type="submit" />


        </form>


        <table width="392" border="1">
            <tr>
                <td width="95">分类id</td>
                <td width="137">分类名称</td>
                <td colspan="2">操作操作</td>   
            </tr>
            <?php
            foreach ($cats_list_array as $key => $val) {
                $delurl = site_url("admin/catset/cat_delete/{$val["id"]}");
                $detailurl = site_url("admin/catset/cat_detail/{$val["id"]}");
                echo "<tr>
    <td>{$val["id"]}</td>
    <td>{$val["name"]}</td>
    <td width=\"58\"><a href=\"{$delurl}\">删除</a></td>   <td width=\"74\"><a href=\"{$detailurl}\">添加标签</a></td>
  </tr>";
            }
            ?>
        




        </table>

    </body>
</html>

